home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / DDocData.h < prev    next >
Encoding:
Text File  |  1998-10-29  |  7.1 KB  |  251 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7. #define idStandard        'Stad'
  8. #define idXx        'Xx  '
  9. #define idLight        'Ligt'
  10. #define idLight2        'Lig2'
  11. #define idLR3        'LR3 '
  12. #define idLR4        'LR4 '
  13. #define idIcl8Next        'Iclt'
  14. #define idNextAlone        'Nexe'
  15. #define idNext        'Next'
  16. #define idNext2        'Nex2'
  17. #define idRadioGroup        'Radp'
  18. #define idGroup        'Grop'
  19. #define idGraphic        'Grac'
  20. #define idBevel        'Bevl'
  21. #define idText        'Text'
  22. #define idSmall        'Smal'
  23. #define idLarge        'Lare'
  24. #define idX12345        'X145'
  25. #define idX12345e6        'X126'
  26. #define idPassword        'Pasd'
  27. #define idTheDate        'Thee'
  28. #define idTheTime        'Thee'
  29. #define idStyled        'Styd'
  30. #define idBars        'Bars'
  31. #define idStandard2        'Sta2'
  32. #define idGraphic2        'Gra2'
  33. #define idSlider        'Slir'
  34. #define idTickMarks        'Tics'
  35. #define idNonDirectional        'Nonl'
  36. #define idLittleArrows        'Lits'
  37. #define idSpinner        'Spir'
  38. #define idVolumeControl        'Voll'
  39. #define idJimSSlider        'Jimr'
  40. #define idStandard3        'Sta3'
  41. #define idIndeterminate        'Inde'
  42. #define idChasingArrows        'Chas'
  43. #define idRectangle        'Rece'
  44. #define idRoundRect        'Rout'
  45. #define idBarberPole        'Bare'
  46. #define idRoundBarber        'Rour'
  47. #define idTools        'Toos'
  48. #define idFromValuesList2        'Fro2'
  49. #define idFromMenu        'Frou'
  50. #define idTextList        'Tex2'
  51.  
  52. //----------
  53. struct DDocData {
  54.     AMSignaler        super;
  55.  
  56.     Boolean        mStandard;
  57.     Boolean        mXx;
  58.     Boolean        mLight;
  59.     Boolean        mLight2;
  60.     Boolean        mLR3;
  61.     Boolean        mLR4;
  62.     Boolean        mIcl8Next;
  63.     Boolean        mNextAlone;
  64.     Boolean        mNext;
  65.     Boolean        mNext2;
  66.     SInt16        mRadioGroup;
  67.     SInt16        mGroup;
  68.     SInt16        mGraphic;
  69.     SInt16        mBevel;
  70.     SInt16        mText;
  71.     Str255        mSmall;
  72.     Str255        mLarge;
  73.     SInt32        mX12345;
  74.     double        mX12345e6;
  75.     Str255        mPassword;
  76.     LongDateRec        mTheDate;
  77.     LongDateRec        mTheTime;
  78.     Str255        mStyled;
  79.     UInt16        mBars;
  80.     SInt16        mStandard2;
  81.     SInt16        mGraphic2;
  82.     SInt16        mSlider;
  83.     SInt16        mTickMarks;
  84.     SInt16        mNonDirectional;
  85.     SInt16        mLittleArrows;
  86.     SInt16        mSpinner;
  87.     SInt16        mVolumeControl;
  88.     SInt16        mJimSSlider;
  89.     SInt16        mStandard3;
  90.     SInt16        mIndeterminate;
  91.     SInt16        mChasingArrows;
  92.     SInt16        mRectangle;
  93.     SInt16        mRoundRect;
  94.     SInt16        mBarberPole;
  95.     SInt16        mRoundBarber;
  96.     SInt16        mTools;
  97.     SInt16        mFromValuesList2;
  98.     SInt16        mFromMenu;
  99.     SInt16        mTextList;
  100. };
  101. typedef struct DDocData DDocData;
  102.  
  103. //----------
  104. DDocData*        NewDDocData ();
  105. void    DeleteDDocData        (DDocData*        data);
  106.  
  107. //----------
  108. void        DDocData_Init    (DDocData*        self);
  109. void        DDocData_Free    (DDocData*        self);
  110.  
  111. Boolean        GetStandard        (DDocData*        self);
  112. void        SetStandard        (DDocData*        self,
  113.                              Boolean        inValue);
  114. Boolean        GetXx        (DDocData*        self);
  115. void        SetXx        (DDocData*        self,
  116.                              Boolean        inValue);
  117. Boolean        GetLight        (DDocData*        self);
  118. void        SetLight        (DDocData*        self,
  119.                              Boolean        inValue);
  120. Boolean        GetLight2        (DDocData*        self);
  121. void        SetLight2        (DDocData*        self,
  122.                              Boolean        inValue);
  123. Boolean        GetLR3        (DDocData*        self);
  124. void        SetLR3        (DDocData*        self,
  125.                              Boolean        inValue);
  126. Boolean        GetLR4        (DDocData*        self);
  127. void        SetLR4        (DDocData*        self,
  128.                              Boolean        inValue);
  129. Boolean        GetIcl8Next        (DDocData*        self);
  130. void        SetIcl8Next        (DDocData*        self,
  131.                              Boolean        inValue);
  132. Boolean        GetNextAlone        (DDocData*        self);
  133. void        SetNextAlone        (DDocData*        self,
  134.                              Boolean        inValue);
  135. Boolean        GetNext        (DDocData*        self);
  136. void        SetNext        (DDocData*        self,
  137.                              Boolean        inValue);
  138. Boolean        GetNext2        (DDocData*        self);
  139. void        SetNext2        (DDocData*        self,
  140.                              Boolean        inValue);
  141. SInt16        GetRadioGroup        (DDocData*        self);
  142. void        SetRadioGroup        (DDocData*        self,
  143.                              SInt16        inValue);
  144. SInt16        GetGroup        (DDocData*        self);
  145. void        SetGroup        (DDocData*        self,
  146.                              SInt16        inValue);
  147. SInt16        GetGraphic        (DDocData*        self);
  148. void        SetGraphic        (DDocData*        self,
  149.                              SInt16        inValue);
  150. SInt16        GetBevel        (DDocData*        self);
  151. void        SetBevel        (DDocData*        self,
  152.                              SInt16        inValue);
  153. SInt16        GetText        (DDocData*        self);
  154. void        SetText        (DDocData*        self,
  155.                              SInt16        inValue);
  156. StringPtr    GetSmall        (DDocData*        self);
  157. void        SetSmallStr    (DDocData*        self,
  158.                              Str255        inValue);
  159. void        SetSmallHandle    (DDocData*        self,
  160.                              CharsHandle        inValue);
  161. StringPtr    GetLarge        (DDocData*        self);
  162. void        SetLargeStr    (DDocData*        self,
  163.                              Str255        inValue);
  164. void        SetLargeHandle    (DDocData*        self,
  165.                              CharsHandle        inValue);
  166. SInt32        GetX12345        (DDocData*        self);
  167. void        SetX12345        (DDocData*        self,
  168.                              SInt32        inValue);
  169. double        GetX12345e6        (DDocData*        self);
  170. void        SetX12345e6        (DDocData*        self,
  171.                              double        inValue);
  172. StringPtr    GetPassword        (DDocData*        self);
  173. void        SetPasswordStr    (DDocData*        self,
  174.                              Str255        inValue);
  175. void        SetPasswordHandle    (DDocData*        self,
  176.                              CharsHandle        inValue);
  177. LongDateRec        GetTheDate        (DDocData*        self);
  178. void        SetTheDate        (DDocData*        self,
  179.                              LongDateRec        inValue);
  180. LongDateRec        GetTheTime        (DDocData*        self);
  181. void        SetTheTime        (DDocData*        self,
  182.                              LongDateRec        inValue);
  183. StringPtr    GetStyled        (DDocData*        self);
  184. void        SetStyledStr    (DDocData*        self,
  185.                              Str255        inValue);
  186. void        SetStyledHandle    (DDocData*        self,
  187.                              CharsHandle        inValue);
  188. UInt16        GetBars        (DDocData*        self);
  189. void        SetBars        (DDocData*        self,
  190.                              UInt16        inValue);
  191. SInt16        GetStandard2        (DDocData*        self);
  192. void        SetStandard2        (DDocData*        self,
  193.                              SInt16        inValue);
  194. SInt16        GetGraphic2        (DDocData*        self);
  195. void        SetGraphic2        (DDocData*        self,
  196.                              SInt16        inValue);
  197. SInt16        GetSlider        (DDocData*        self);
  198. void        SetSlider        (DDocData*        self,
  199.                              SInt16        inValue);
  200. SInt16        GetTickMarks        (DDocData*        self);
  201. void        SetTickMarks        (DDocData*        self,
  202.                              SInt16        inValue);
  203. SInt16        GetNonDirectional        (DDocData*        self);
  204. void        SetNonDirectional        (DDocData*        self,
  205.                              SInt16        inValue);
  206. SInt16        GetLittleArrows        (DDocData*        self);
  207. void        SetLittleArrows        (DDocData*        self,
  208.                              SInt16        inValue);
  209. SInt16        GetSpinner        (DDocData*        self);
  210. void        SetSpinner        (DDocData*        self,
  211.                              SInt16        inValue);
  212. SInt16        GetVolumeControl        (DDocData*        self);
  213. void        SetVolumeControl        (DDocData*        self,
  214.                              SInt16        inValue);
  215. SInt16        GetJimSSlider        (DDocData*        self);
  216. void        SetJimSSlider        (DDocData*        self,
  217.                              SInt16        inValue);
  218. SInt16        GetStandard3        (DDocData*        self);
  219. void        SetStandard3        (DDocData*        self,
  220.                              SInt16        inValue);
  221. SInt16        GetIndeterminate        (DDocData*        self);
  222. void        SetIndeterminate        (DDocData*        self,
  223.                              SInt16        inValue);
  224. SInt16        GetChasingArrows        (DDocData*        self);
  225. void        SetChasingArrows        (DDocData*        self,
  226.                              SInt16        inValue);
  227. SInt16        GetRectangle        (DDocData*        self);
  228. void        SetRectangle        (DDocData*        self,
  229.                              SInt16        inValue);
  230. SInt16        GetRoundRect        (DDocData*        self);
  231. void        SetRoundRect        (DDocData*        self,
  232.                              SInt16        inValue);
  233. SInt16        GetBarberPole        (DDocData*        self);
  234. void        SetBarberPole        (DDocData*        self,
  235.                              SInt16        inValue);
  236. SInt16        GetRoundBarber        (DDocData*        self);
  237. void        SetRoundBarber        (DDocData*        self,
  238.                              SInt16        inValue);
  239. SInt16        GetTools        (DDocData*        self);
  240. void        SetTools        (DDocData*        self,
  241.                              SInt16        inValue);
  242. SInt16        GetFromValuesList2        (DDocData*        self);
  243. void        SetFromValuesList2        (DDocData*        self,
  244.                              SInt16        inValue);
  245. SInt16        GetFromMenu        (DDocData*        self);
  246. void        SetFromMenu        (DDocData*        self,
  247.                              SInt16        inValue);
  248. SInt16        GetTextList        (DDocData*        self);
  249. void        SetTextList        (DDocData*        self,
  250.                              SInt16        inValue);
  251.